2024-03-13

Guiding Question

  • The World Happiness Report is a survey conducted in 137 countries
    • The report uses the past 3 years in survey to assign score
  • What factors in a country lead to happiness?
  • Our group decided to look at two factors
    • Geography / Geopolitics
    • Societal Factors
      • Freedom of Choice
      • Corruption Perception
      • Social Support

The Data

  • The happiness data was pulled from the World Happiness Report 2023 Source

  • Additional country statistics were merged to the dataset from the following Kaggle dataset

  • Finally the countrycode package was used to import the continent and the iso country code

  • The dataset contains 133 countries

    • Kosovo, Hong Kong, State of Taiwan and Palestine were dropped because from the dataset because the country statistics dataset did not have values for them

    • The World Happiness Report did not survey every country in the world, so we do not have all countries

2023 World Happiness Score for 133 Countries

  • The Western World appears to have the most happiness
  • The Nordic Countries (Finland, Norway, Sweden, and Denmark) have the most happiness
  • African countries are the most unhappy, followed by countries in the middle east
  • Surprisingly Ukraine is not incredibly unhappy

Multiple Regression Predicting Happiness Score

Dependent variable:
happiness.score
Social support 5.818***
(0.416)
Life choice freedom 2.153***
(0.504)
Corruption perception -1.405***
(0.282)
Constant 0.216
(0.492)
Observations 133
R2 0.800
Adjusted R2 0.795
Residual Std. Error 0.521 (df = 129)
F Statistic 171.676*** (df = 3; 129)
Note: p<0.1; p<0.05; p<0.01

Psychological Factors of Happiness

Psychological Trends across Continents

Shiny APP

Shiny applications not supported in static R Markdown documents

Summary

  • Get the data from the World Happiness Report 2023.
  • Make a world map plot to visualize the happiness score.
  • Analyze the relationship between the happiness score and psychological factors.
  • Create a Shiny app to visualize the relationship between the happiness score and other variables.